package com.cungmua.app.model.response;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by kelvin.nguyen on 6/16/14.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class CungMuaResponse {
    public String message;
    public int code;

    @JsonCreator
    public CungMuaResponse(@JsonProperty("Msg") String message, @JsonProperty("Code") int code) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    @JsonProperty("Msg")
    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    @JsonProperty("Code")
    public void setCode(int code) {
        this.code = code;
    }

    public abstract Object getData();
}
